package mapper;

import entity.Userorder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserorderMapper {
    int deleteByPrimaryKey(String orderNumber);

    int insert(Userorder record);

    int insertSelective(Userorder record);

    Userorder selectByPrimaryKey(String orderNumber);

    List<Userorder> selectByUsernam(@Param("username") String username,@Param("page") int page,@Param("limit") int limit);


    int updateByPrimaryKeySelective(Userorder record);

    int updateByPrimaryKey(Userorder record);

    List<Userorder> getAll(@Param("page") int page,@Param("limit") int limit);

    int getCount();

}